package mymyoux.core.rootClasses
{
	import flash.display.DisplayObject;
	
	import mx.controls.Button;
	import mx.core.Application;
	
	import mymyoux.core.Root;
	public final class MRoot
	{
		public function MRoot()
		{
			trace("lol");
		}
		/**
		 * Initialise la gestion des DisplayObject.
		 * <b>Obligatoire</b>.
		 * -es3=true -as3=false -strict=false
		 */
		public function init():void
		{
			flash.display.DisplayObject.prototype.mroot=Root;
			flash.display.DisplayObject.prototype.addMChild=function(child:DisplayObject):void
			{
				trace(this);
			}
			(new Application()).addMChild(new Button());
		}
		public function addMChild(child:DisplayObject):void
		{
			
			flash.display.DisplayObject.prototype.addChild(child);
		}
	}
}